.four-quadrant-diagram {
  width: 100%;
  height: 100%;
  position: relative;
  .axis-top-text {
    font-size: 12px;
    color: #8b98a9;
    margin-bottom: 10px;
  }
  .legend-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    border: 1px solid #dce0e6;
    border-radius: 6px;
    overflow: hidden;
    .legend-item {
      width: 50%;
      flex: 0 0 auto;
      height: 146px;
      opacity: 0.1;
      box-sizing: border-box;
    }
    .first {
      border-right: 1px dashed #dce0e6;
      border-bottom: 1px dashed #dce0e6;
    }
    .last {
      border-left: 1px dashed #dce0e6;
      border-top: 1px dashed #dce0e6;
    }
    .legend-point {
      position: absolute;
      margin-left: -5px;
      margin-top: -5px;
      display: flex;
      align-items: center;
      .point-item-box {
        width: 10px;
        height: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        .block {
          width: 10px;
          height: 10px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 3px;
          .circle {
            display: inline-block;
            width: 7px;
            height: 7px;
            background: #5a86ff;
            border: 1px solid #ffffff;
            border-radius: 50%;
            &:hover {
              width: 10px;
              height: 10px;
              background: #5a86ff;
              box-shadow: 0px 0px 4px 0px rgba(82, 141, 249, 0.6);
              border: 2px solid #ffffff;
              cursor: pointer;
            }
          }
        }
      }
      .point-item-text {
        font-size: 12px;
        color: #617185;
      }
    }
  }
  .axis-bottom-text {
    font-size: 12px;
    color: #8b98a9;
    margin-top: 10px;
    text-align: right;
    margin-bottom: 16px;
  }
  .legend {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    .legend-item {
      width: 50%;
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      .legend-item-span {
        display: inline-block;
        width: 10px;
        height: 10px;
        opacity: 0.2;
        margin-right: 5px;
      }
      .legend-item-title {
        font-size: 12px;
        color: #617185;
      }
    }
  }
}

.four-quadrant-diagram-tooltip {
  max-width: auto;
  .ant-tooltip-content {
    .ant-tooltip-inner {
      .block {
        display: inline-block;
        width: 10px;
        height: 10px;
        opacity: 0.2;
        margin-right: 5px;
      }
      span {
        font-size: 12px;
        color: #617185;
      }
    }
  }
}

.ant-tooltip.four-quadrant-diagram-tooltip.ant-tooltip-placement-right {
  max-width: 360px;
  .ant-tooltip-content {
    .ant-tooltip-inner {
      padding: 12px;
      display: flex;
      align-items: center;
    }
  }
}
